<?php
/**
 * Created by PhpStorm.
 * User: sin
 * Date: 2019/2/21
 * Time: 3:05 PM
 */

namespace app\api\controller;

use app\common\controller\ApiBaseController;

class Asset extends ApiBaseController {
    /**
     * @功能：用户信息
     * @开发者：gys
     */
    public function user_info(){
        $id  = self::get_data('id',self::NOT_EMPTY,"ID不能为空！");

        $data = \app\common\ext\User::getAsset($id);
        if(!$data){
            self::set_code(self::ERR_0001);
            self::set_msg("获取信息失败！");
            self::send();
        }

        //操作成功
        self::set_code(self::SUCCESS);
        self::set_msg("成功！");
        self::set_values($data);
        self::send();
    }
}